package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 售后操作历史
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("after_sales_opt_history")
public class AfterSalesOptHistory extends Model<AfterSalesOptHistory> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;
    /**
     * 售后记录ID
     */
    @TableField("after_sales_record_id")
    private String afterSalesRecordId;
    /**
     * 操作时间
     */
    @TableField("opt_date")
    private Date optDate;
    /**
     * 操作人ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 操作类型(1:买家申请, 2:商家同意退款, 3:买家发货, 4:商家收货, 5:商家拒绝退款, 6:买家修改退款申请, 7:买家撤销退款申请)
     */
    @TableField("opt_type")
    private Integer optType;
    /**
     * 删除标识(0:未删除,1:已删除)
     */
    @TableField("logic_delete")
    private Integer logicDelete;
    /**
     * 创建日期
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新日期
     */
    @TableField("update_date")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAfterSalesRecordId() {
        return afterSalesRecordId;
    }

    public void setAfterSalesRecordId(String afterSalesRecordId) {
        this.afterSalesRecordId = afterSalesRecordId;
    }

    public Date getOptDate() {
        return optDate;
    }

    public void setOptDate(Date optDate) {
        this.optDate = optDate;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getOptType() {
        return optType;
    }

    public void setOptType(Integer optType) {
        this.optType = optType;
    }

    public Integer getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(Integer logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AfterSalesOptHistory{" +
        "id=" + id +
        ", afterSalesRecordId=" + afterSalesRecordId +
        ", optDate=" + optDate +
        ", userId=" + userId +
        ", optType=" + optType +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
